package cn.cfoodc.sharding.mapper;

import cn.cfoodc.sharding.domain.Encryptor;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface EncryptorMapper {

    int insert(@Param("e") Encryptor encryptor);

    Encryptor selectByPrimaryKey(Long id);

    List<Exception> selectAll();

    int deleteByPrimaryKey(Long id , String name ,String publicKey );

    List<Exception> selectByAnd(String name ,String publicKey );

    int updateByPrimaryKey(Encryptor encryptor);

}
